#import <Foundation/Foundation.h>
#import <MapKit/MapKit.h>
#import "PersistentDataType.h"

/**
 * A CustomPin is an object representing a pin on the map with a
 * custom image.
 *
 * @author      Justin Hollander
 * @version     0.9.3
 * @since       0.9.3
 */
@interface CustomPin : MKAnnotationView {
	NSString* customPinImagePath; // The path to the custom pin's image
}

@property (nonatomic, retain) NSString* customPinImagePath;

/**
 * Initialize the custom pin with given information.
 *
 * @param annotation  the annotation for the pin
 * @param iPath       the file path to the pin's image
 * @return            the initialized custom pin with details
 */
- (id)  initWithDetails:(id <MKAnnotation>) annotation imagePath:(NSString*)iPath;

@end
